const express = require("express");
const SystemRouter = express.Router();
const validataAuth = require("../utils/Auth")

// SystemRouter.post("/login", require("../controller/UserInfo.Controller").login);

// //分页
// SystemRouter.get("/getlists", require("../controller/UserInfo.Controller").getlists);
// //用户添加
// SystemRouter.post("/addUser", require("../controller/UserInfo.Controller").addUser);
// //validataAuth.Auth()
// //用户信息的修改
// SystemRouter.post("/update", require("../controller/UserInfo.Controller").update);
// //用户的删除
// SystemRouter.post("/delete", require("../controller/UserInfo.Controller").delete);
// //用户的模块查询
// SystemRouter.get("/search", require("../controller/UserInfo.Controller").search);

// // SystemRouter.use(validataAuth.Auth());

// // 角色路由
// SystemRouter.post("/addRole", require("../controller/Roles.Controller").addRole);
// SystemRouter.post("/delete", require("../controller/Roles.Controller").delete);
// SystemRouter.post("/search", require("../controller/Roles.Controller").search);
// SystemRouter.post("/update", require("../controller/Roles.Controller").update);
// //给对应用户添加角色
// SystemRouter.post("/addRoleByUser", require("../controller/Roles.Controller").addRoleByUser);
// //查询用户拥有的角色
// SystemRouter.post("/getRoleByUser", require("../controller/Roles.Controller").getRoleByUser);


// //添加菜单
// SystemRouter.post("/addMeun", require("../controller/Meun.Controller").addMeun);
// //修改菜单
// SystemRouter.post("/updateMeun", require("../controller/Meun.Controller").updateMeun);
// //删除菜单 软删除
// SystemRouter.post("/deleteMeun", require("../controller/Meun.Controller").deleteMeun);

// SystemRouter.get("/getMeuns", require("../controller/Meun.Controller").getMeuns);
// SystemRouter.get("/getMeunsByRole", require("../controller/Meun.Controller").getMeunsByRole);

// SystemRouter.post("/updateMeunsByRole", require("../controller/Meun.Controller").updateMeunsByRole);


SystemRouter.get("/movieOnInfoList", require("../controller/Movies.Controller").movieOnInfoList);

SystemRouter.get("/cinemaDetail/:cinemaId", require("../controller/Movies.Controller").cinemaDetail);

SystemRouter.get("/detailmovie", require("../controller/Movies.Controller").detailmovie);

SystemRouter.get("/cities", require("../controller/Movies.Controller").cities);

SystemRouter.get("/filterCinemas", require("../controller/Movies.Controller").filterCinemas);

SystemRouter.get("/comingList", require("../controller/Movies.Controller").comingList);

SystemRouter.get("/moreCinemas", require("../controller/Movies.Controller").moreCinemas);

SystemRouter.get("/getMovieSchedule", require("../controller/Movies.Controller").getMovieSchedule);

SystemRouter.get("/login", require("../controller/Users.Controller").login);

SystemRouter.get('/getVerCode', require("../controller/Users.Controller").getVerCode);

// SystemRouter.post("/addUser", require("../controller/Users.Controller").addUser);


SystemRouter.get("/filterOrders", require("../controller/Orders.Controller").filterOrders);

SystemRouter.post("/addOrder", require("../controller/Orders.Controller").addOrder);

SystemRouter.get("/getOrder", require("../controller/Orders.Controller").getOrder);

SystemRouter.get("/delOrder", require("../controller/Orders.Controller").delOrder);

SystemRouter.get('/qrcode', require("../controller/QrCode.Controller").getQrCode)

SystemRouter.post('/uploadAvatar', require("../controller/Upload.Controller").uploadAvatar)

SystemRouter.post('/uploadGender', require("../controller/Upload.Controller").uploadGender)

SystemRouter.post('/uploadName', require("../controller/Upload.Controller").uploadName)

SystemRouter.post('/uploadBirth', require("../controller/Upload.Controller").uploadBirth)





module.exports = { SystemRouter }